package com.quanyan.user.mapper;

import com.quanyan.user.model.db.TbUserMedalRelation;
import com.quanyan.user.model.vo.response.MedalRule;
import com.quanyan.user.model.vo.response.RespUserMedal;
import com.quanyan.user.response.RespOpenUserMedal;

import java.util.List;
import java.util.Map;

/**
 * Created by zhang on 16/7/13.
 */
public interface UserMedalExtendMapper {

    /**
     * 获取用户勋章列表
     * @param map
     * @return
     */
    List<RespUserMedal> getUserMedalList(Map map);

    /**
     * 勋章规则列表
     * @param medalId
     * @return
     */
    List<MedalRule> listMedalRule(int medalId);

    /**
     * 获取用户勋章列表
     * @param map
     * @return
     */
    List<RespOpenUserMedal> getOpenUserMedal(Map map);

    /**
     * 批量插入用户勋章
     * @return
     */
    int batchInsertUserMedalRelation(List<TbUserMedalRelation> userMedalRelationList);

}
